using Autofac;
using BuildBox.Core;
using BuildBox.Core.Logging;

namespace BuildBox.Server
{
    public class ConfigurationModule : Core.ConfigurationModule
    {
        protected override void Load(ContainerBuilder builder)
        {
            base.Load(builder);
            builder.RegisterType<BuildBoxServer>().InstancePerDependency();
            builder.RegisterType<MainService>().InstancePerDependency();
            builder.RegisterType<WindowsIdentityAdapter>().As<IWindowsIdentityAdapter>().SingleInstance();
        }
    }
}